package jp.co.toshiba.ffsa.form.csct;

import jp.co.toshiba.ffsa.form.BaseForm;

import org.seasar.struts.annotation.Arg;
import org.seasar.struts.annotation.Mask;
import org.seasar.struts.annotation.Maxlength;
import org.seasar.struts.annotation.Msg;
import org.seasar.struts.annotation.Required;

/**
 * お問い合わせ内容入力
 * @author npc
 */
public class Csct101Form extends BaseForm {
    /** メールアドレス*/
    public String emailAddress;

    /** Subject */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="csct101.003", resource=true))
    @Maxlength(maxlength=100, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="csct101.003", resource=true), arg1=@Arg(key="100", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="csct101.003", resource=true))
    public String subject;

    /** body */
    @Required(msg=@Msg(key="errors.required", resource=true), arg0=@Arg(key="csct101.004", resource=true))
    @Maxlength(maxlength=2000, msg=@Msg(key="errors.maxlength", resource=true), arg0=@Arg(key="csct101.004", resource=true), arg1=@Arg(key="2000", resource=false))
    @Mask(mask="^[a-zA-Z0-9 -/:-@\\[-\\`\\{-\\~\r\n]+$", msg=@Msg(key="errors.emcharacter", resource=true), arg0=@Arg(key="csct101.004", resource=true))
    public String body;

}